package com.tarry.trade.counter.mapper;

import com.tarry.trade.counter.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.math.BigDecimal;

@Mapper
public interface UserMapper {

    @Select("select * from t_user where uid= #{uid} and password = #{password}")
    User queryAccount(@Param("uid") long uid, @Param("password") String password);

    @Update("update t_user set modifyDate=#{modifyDate},modifyTime=#{modifyTime} where id=#{id}")
    void updateLoginTime(@Param("id") int id, @Param("modifyDate") String modifyDate, @Param("modifyTime") String modifyTime);

}
